<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('vendor_brands', function (Blueprint $table) {
            $table->id();
            $table->unsignedBigInteger('vendor_id');
            $table->string('name')->comment('品牌名称');
            $table->string('complete_spelling')->comment('全拼');
            $table->string('short_for_spelling')->comment('简拼');
            $table->string('short_for')->comment('简称');
            $table->string('name_in_en')->comment('英文名称');
            $table->string('short_in_en')->comment('英文简称');
            $table->string('keywords')->comment('关键字 使用"|"分割保存');
            $table->unsignedTinyInteger('status')->default(1)->comment('品牌状态 0 禁用 1 正常');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('vendor_brands');
    }
};
